package com.qf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 前台用户
 */

public class User implements Serializable {
    private static final long serialVersionUID = -41017774528442334L;

    @TableId(value = "u_id", type = IdType.AUTO)
    private Integer id;

    @TableField("u_name")
    private String name;

    @TableField("u_password")
    private String password;

    @TableField("u_email")
    private String email;

    @TableField("u_sex")
    private String sex;

    @TableField("u_status")
    private Integer status; //激活状态

    @TableField("u_phone")
    private String phone;

    // u_id id, u_name name, u_email email, u_sex sex, u_status status, u_phone phone, u_register_date registerDate

    @TableField("u_register_date")
    private Date registerDate;



    @TableField("u_avatar")
    private String avatar;

    @TableField("u_balance")
    private BigDecimal balance;



    public User() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Date getRegisterDate() {
        return registerDate;
    }

    public void setRegisterDate(Date registerDate) {
        this.registerDate = registerDate;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", sex='" + sex + '\'' +
                ", status=" + status +
                ", phone='" + phone + '\'' +
                ", registerDate=" + registerDate +
                '}';
    }
}
